package com.hvgroup.modules.sanic.domain.po;

import com.hvgroup.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

/**
 * 文档模板配置表实体类。
 * 用于描述某知识库下的文档模板类型及存储路径等信息。
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "llm_datasets_tpml")
public class LlmDatasetsTpml extends BaseEntity implements Serializable {

    /** 主键ID */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id", nullable = false)
    private Long id;

    /** 知识库ID */
    @Column(name = "datasets_id", length = 30)
    private String datasetsId;

    /** 知识库名称 */
    @Column(name = "datasets_name", length = 128)
    private String datasetsName;

    /** 文档类型 */
    @Column(name = "doc_type", nullable = false)
    private Integer docType;

    /** 文档ID */
    @Column(name = "doc_id", length = 64)
    private String docId;

    /** 文档模板名称 */
    @Column(name = "doc_name", length = 128)
    private String docName;

    /** 文档存储类型*/
    @Column(name = "doc_sto_type")
    private Integer docStoType;

    /** 文档存储路径 */
    @Column(name = "doc_sto_path", length = 255)
    private String docStoPath;
}
